|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2010.AgentSmith.Bounds
public class Bounds
Class that is used to determine the bounds of an issue.
| Constructor Summary | |
|---|---|
Bounds()
Constructor |
|
Bounds(Issue pIssue)
Constructor. |
|
| Method Summary | |
|---|---|
double |
getAmtSteps()
returns the amount of steps |
static java.util.HashMap<java.lang.Integer,Bounds> |
getIssueBounds(java.util.ArrayList<Issue> pIssues)
Creates a hashmap with for each of the issues the bounds |
static Value |
getIssueValue(Issue pIssue,
double pIndex)
returns a Value object with the value of an issue at the given index works for real, discrete and integer objects |
double |
getLower()
returns the lower bound |
static double |
getScaledIssueValue(Bounds pBounds,
Bid pBid,
Issue pIssue)
returns the scaled value of the (discrete, real or integer) issue. |
double |
getStepSize()
returns the number of steps |
double |
getUpper()
returns the upper bound |
double |
normalize(double pValue)
returns a normalized version of a value |
void |
setAmtSteps(double pAmtSteps)
set the number of steps to take |
void |
setLower(double pLower)
sets the lower bound |
void |
setUpper(double pUpper)
sets the upper bound |
java.lang.String |
toString()
returns a string with the upper and lower bounds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bounds()
public Bounds(Issue pIssue)
| Method Detail |
|---|
public double getLower()
public double getUpper()
public double getAmtSteps()
public double getStepSize()
public void setLower(double pLower)
public void setUpper(double pUpper)
public void setAmtSteps(double pAmtSteps)
public static java.util.HashMap<java.lang.Integer,Bounds> getIssueBounds(java.util.ArrayList<Issue> pIssues)
public static Value getIssueValue(Issue pIssue,
double pIndex)
public static double getScaledIssueValue(Bounds pBounds,
Bid pBid,
Issue pIssue)
throws java.lang.Exception
java.lang.Exceptionpublic double normalize(double pValue)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||